Skip to content

test: match refusal messages as plain text - #2

Merged
afbora merged 1 commit into
mainfrom
test/plain-error-match
Oct 17, 2026
Merged

afbora merged 1 commit into
mainfrom
test/plain-error-match

Conversation

@afbora

@afbora afbora commented Oct 17, 2026

Copy link
Copy Markdown
Member

What: one lock test checks the error line with a substring instead of a regular expression built from the message.
Why: CodeQL's first scan flagged the hand-made escaping (js/incomplete-sanitization, alert 1): it escaped dots and parentheses but not backslashes.
Tested: npm test on Node 24 (166 tests, coverage unchanged).

🤖 Generated with Claude Code

@afbora
afbora merged commit bf352fb into main Oct 17, 2026
6 checks passed
@afbora
afbora deleted the test/plain-error-match branch October 17, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant